package mavenProject.Service;

import mavenProject.DAO.QuestionDAOImpl;
import mavenProject.Model.Question;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "QuestionService")

public class QuestionServiceImp implements QuestionService {

	@Autowired
	QuestionDAOImpl questionDAO;
	
	public Question getQuestion(int id) {
		return questionDAO.getQuestion(id) ;
	}

	public void getRightAnswer(int idQues) {
		 questionDAO.getQuestion(idQues).getRightAnswer();
	}
}
